<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" import="java.util.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <title>上传报刊</title>
    <link rel="stylesheet" type="text/css" href="/css/upload.css">
    <script type="text/javascript" src="js/index.js"></script>
    <style>
        #enroll {
            background-color: #009688;
        }
    </style>
</head>
<body>
<div id="box">
    <%@ include file="header.jsp" %>
    <%@ include file="left.jsp" %>
    <div class="box2">
        <div class="box3">
            <div class="editBox1">
                <div class="updateBox2">
                    <p id="updateTitle">上传报刊信息</p>
                    <form action="/upload/uploadNewspaper" method="post"
                          enctype="multipart/form-data" style="margin-top: 30px">
                        <div class="updateBox3">
                            <div class="updateBox4">报刊名称：</div>
                            <input type="text" name="newspaperName" value="${newspaper.name }"
                                   class="updateInput"/>
                        </div>
                        <br/>
                        <div class="updateBox3">
                            <div class="updateBox4">报刊价格：</div>
                            <input type="text" name="newspaperPrice"
                                   value="${newspaper.price }" class="updateInput"/>
                        </div>
                        <br/>
                        <div class="updateBox3">
                            <div class="updateBox4">出版人：</div>
                            <input type="text" name="publisher" value="${newspaper.publisher }"
                                   class="updateInput"/>
                        </div>
                        <br/>
                        <div class="updateBox3">
                            <div class="updateBox4">出版时间：</div>
                            <input type="text" name="date" value="${newspaper.date }"
                                   class="updateInput"/>
                        </div>
                        <br/>
                        <div style="width: 500px; height: 50px; text-align: center; text-indent: 8px;">
                            <div style="margin: 0 auto;">
                                <div class="updateBox4">报刊图片：</div>
                                <div class="updateBox5">
                                    <input type="file" name="picture" id="updateImgFile" multiple="multiple"/>
                                </div>
                            </div>
                        </div>
                        <br/>
                        <div style="width: 500px; height: 50px; text-align: center; text-indent: 8px;">
                            <div style="margin: 0 auto;">
                                <div class="updateBox4">标题一：</div>
                                <div class="updateBox5">
                                    <input style="float: left" type="file" name="title1" multiple="multiple"/>
                                </div>
                            </div>
                        </div>
                        <br/>
                        <div style="width: 500px; height: 50px; text-align: center; text-indent: 8px;">
                            <div style="margin: 0 auto;">
                                <div class="updateBox4">标题二：</div>
                                <div class="updateBox5">
                                    <input style="float: left" type="file" name="title2" multiple="multiple"/>
                                </div>
                            </div>
                        </div>
                        <br/>
                        <div style="width: 500px; height: 50px; text-align: center; text-indent: 8px;">
                            <div style="margin: 0 auto;">
                                <div class="updateBox4">标题三：</div>
                                <div class="updateBox5">
                                    <input style="float: left" type="file" name="title3" multiple="multiple"/>
                                </div>
                            </div>
                        </div>
                        <br/> <input type="submit" value="提交报刊信息" id="submitUpdate"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>